package com.key.win.business.chat.session;

import com.key.win.business.chat.eums.ImMessageTargetEnum;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
public class ChatSession  implements Serializable {
    private String sessionId;
    private String sessionName;
    private ImMessageTargetEnum type;
    private Set<String> userIds = new HashSet<>();

    public void addUserId(String userId) {
        if (StringUtils.isNotBlank(userId)) {
            this.userIds.add(userId);
        }
    }
}
